<!--
See http://developer.yahoo.com/ypatterns/pattern.php?pattern=searchpagination
-->
<?php if ($this->pageCount > 1): ?>
	<ul class="cp_paging">
		<?php if ($this->current == $this->first): ?>
			<li class="disabled">
				<span>
					&laquo; <?php echo $this->translate('First') ?>
				</span>
			</li>
		<?php else: ?>
			<li>
				<a href="<?php echo $this->pageUrl(array_merge($this->query, array('page' => $this->first))); ?>">
					&laquo; <?php echo $this->translate('First') ?>
				</a>
			</li>
		<?php endif; ?>
		<?php if (isset($this->previous)): ?>
			<li>
				<a href="<?php echo $this->pageUrl(array_merge($this->query, array('page' => $this->previous))); ?>">
					&lsaquo;
				</a>
			</li>
		<?php else: ?>
			<li class="disabled">
				<span>
					&lsaquo;
				</span>
			</li>
		<?php endif; ?>
		<?php foreach ($this->pagesInRange as $page): ?>
			<?php if ($page != $this->current): ?>
				<li>
					<a href="<?php echo $this->pageUrl(array_merge($this->query, array('page' => $page))); ?>">
						<?php echo $page; ?>
					</a>
				</li>
			<?php else: ?>
				<li class="active">
					<span>
						<?php echo $page; ?>
					</span>
				</li>
			<?php endif; ?>
		<?php endforeach; ?>
		<?php if (isset($this->next)): ?>
			<li>
				<a href="<?php echo $this->pageUrl(array_merge($this->query, array('page' => $this->next))); ?>">
					&rsaquo;
				</a>
			</li>
		<?php else: ?>
			<li class="disabled">
				<span>
					&rsaquo;
				</span>
			</li>
		<?php endif; ?>
		<?php if ($this->current == $this->last): ?>
			<li class="disabled">
				<span>
					<?php echo $this->translate('Last') ?> &raquo;
				</span>
			</li>
		<?php else: ?>
			<li>
				<a href="<?php echo $this->pageUrl(array_merge($this->query, array('page' => $this->last))); ?>">
					<?php echo $this->translate('Last') ?> &raquo;
				</a>
			</li>
		<?php endif; ?>
	</ul>
<?php else: ?>
	<ul class="sm_paging">&nbsp;</ul>
<?php endif; ?>